<?php
class Core_View_Helper_IsActiveUrl extends Zend_View_Helper_Abstract{
	
	public function __construct()
	{
	}
    /**
	 *
	 * @param mixed $action
	 * @return boolean 
	 */
	public function isActiveUrl($action){        
        $request = Zend_Controller_Front::getInstance()->getRequest();
        if( is_array($action) )
        {
            foreach($action as $key => $value)
            {
                if( $request->getParam($key) != $value)
                    return false;
            }
            return true;
        }
        elseif( Zend_Controller_Front::getInstance()->getRequest()->getParam('action') === $action )
        {
            return true;
        }
        return false;
	}
}